!!!
%html
  %head
    %title WebLog
    = stylesheet_link_tag    'theblog/admin', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'theblog/admin', 'data-turbolinks-track' => true
    = csrf_meta_tags
  %body
    #wrapper
      / Navigation
      %nav.navbar.navbar-default.navbar-static-top{:role => "navigation", :style => "margin-bottom: 0"}
        .navbar-header
          %button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", :type => "button"}
            %span.sr-only Toggle navigation
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          = link_to "Admin", theblog.admin_root_path, class: 'navbar-brand'
        %ul.nav.navbar-top-links.navbar-right
          = render "theblog/admin/shared/navbar"

        .navbar-default.sidebar{:role => "navigation"}
          = render "theblog/admin/shared/sidebar"

      #page-wrapper
        .container
          %section.warning
            - if flash[:notice]
              .alert.alert-success.alert-dismissible{role: 'alert'}
                %button.close{"aria-label" => "Close", "data-dismiss" => "alert", :type => "button"}
                  %span{"aria-hidden" => "true"} &times;
                %p= flash[:notice].html_safe
            - if flash[:alert]
              .alert.alert-danger.alert-dismissible{role: 'alert'}
                %button.close{"aria-label" => "Close", "data-dismiss" => "alert", :type => "button"}
                  %span{"aria-hidden" => "true"} &times;
                %p= flash[:alert]
        .row
          .col-lg-12
            = yield

      .footer
